package com.example.webdemo.service;

import com.example.webdemo.model.Article;
import com.example.webdemo.model.ArticleInfo;

import java.util.List;

/**
 * @author zp
 * @version 1.0
 * @description: ArticleService
 * @date 2023/7/31 19:06
 */
public interface ArticleInfoService {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleInfo record);

    int insertSelective(ArticleInfo record);

    ArticleInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleInfo record);

    int updateByPrimaryKey(ArticleInfo record);

    List<ArticleInfo> selectAll();

    List<ArticleInfo> selectByUserId(Integer userId);

    boolean saveArticleInfoAndArticleTitle(ArticleInfo articleInfo);
}
